<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<table id="banji-table"></table>

<script type="text/javascript">
	var option={
		elem:'#banji-table',
		title:'班级列表',
		path:'banji',
		addurl:'edit',
	
		cols : [ 
			[ {
				field : 'id',
				title : 'ID'
			}, {
				field : 'name',
				title : '班级名称'
			}, {
				field : 'manager',
				title : '班主任'
			} ] 
		]
	}
	var classTable=new LayUiTable(option);
	classTable.init();
</script>
</body>
</html>